package jnpf.model.ragFlow.know;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("创建数据集参数")
public class CreateKnowApiReq {
    @ApiModelProperty(value = "数据集名称", required = true, notes = "唯一名称，仅限BMP字符，最多128个字符，不区分大小写")
    private String name;

    @ApiModelProperty(value = "头像的Base64编码", notes = "最多65535个字符")
    private String avatar;

    @ApiModelProperty(value = "数据集简要描述", notes = "最多65535个字符")
    private String description;

    @ApiModelProperty(value = "嵌入模型名称", notes = "格式：model_name@model_factory，最多255个字符")
    private String embedding_model="BAAI/bge-large-zh-v1.5@BAAI";

    @ApiModelProperty(value = "访问权限", allowableValues = "me,team", notes = "me: 仅自己可管理；team: 团队成员均可管理")
    private String permission = "me";

    @ApiModelProperty(value = "页面排名", notes = "范围0-100")
    private Integer pagerank = 0;

    @ApiModelProperty(value = "分块方法", allowableValues = "naive,book,email,laws,manual,one,paper,picture,presentation,qa,table,tag")
    private String chunk_method = "naive";

    @ApiModelProperty(value = "解析器配置")
    private ParserConfig parser_config=new ParserConfig();
}
